package com.itcncp.wechat.app.rpc.api;

import com.itcncp.common.base.BaseService;
import com.itcncp.wechat.app.dao.model.UserCustomerInfo;
import com.itcncp.wechat.app.dao.model.UserCustomerInfoExample;

/**
* UserCustomerInfoService接口
* Created by itcncp on 2018/1/12.
*/
public interface UserCustomerInfoService extends BaseService<UserCustomerInfo, UserCustomerInfoExample> {
    /**
     * 用户注册
     * @return
     */
    UserCustomerInfo registerInfo(UserCustomerInfo userCustomerInfo);

    /**
     * 手机号是否已注册
     * @param mobile
     * @return
     */
    UserCustomerInfo getUserInfoByMobile(String mobile);

    /**
     * 用户登录
     * @param userCustomerInfo
     * @return
     */
    UserCustomerInfo login(UserCustomerInfo userCustomerInfo);



    /**
     * 登录微信小程序 openid
     * @param userCustomerInfo
     * @return
     */
    UserCustomerInfo loginWxMini(UserCustomerInfo userCustomerInfo);

    /**
     * 验证请求接口是否过期
     * @param userId
     * @param deviceAppNo
     * @return true 过期
     */
     boolean UserTokenExpired(Long userId,String deviceAppNo,String token);
}